<html xmlns:th="http://www.thymeleaf.org">
<title>Login</title>

<body>
<h1>登录</h1>
<div th:if="${param.failure}">
    用户名或密码错误
</div>
<div>
    <form th:action="@{/login}" method="post">
        <div>
            <input type="text" name="myusername" placeholder="用户名"/>
        </div>
        <div>
            <input type="password" name="mypassword" placeholder="密码"/>
        </div>
        <div>
            <input type="submit" value="登录"/>
        </div>
    </form>
</div>
</body>
</html>